<template>
  <div class="app-container">
    <el-tabs>
      <el-tab-pane v-if="checkPermission(['admin/setting.Wechat/offiInfo'])" label="公众号" lazy>
        <wechat-offi />
      </el-tab-pane>
      <el-tab-pane v-if="checkPermission(['admin/setting.Wechat/miniInfo'])" label="小程序" lazy>
        <wechat-mini />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import checkPermission from '@/utils/permission' // 权限判断函数
import WechatOffi from './components/WechatOffi'
import WechatMini from './components/WechatMini'

export default {
  name: 'SettingWechat',
  components: { WechatOffi, WechatMini },
  data() {
    return {
      name: '微信设置'
    }
  },
  created() {
  },
  methods: {
    checkPermission
  }
}
</script>
